from app import db

class Diseases(db.Model):
    __tablename__ = 'diseases'

    disease_id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(255), nullable=False)
    description = db.Column(db.Text, nullable=True)
    icd_code = db.Column(db.String(10), nullable=True)
    severity_level = db.Column(db.Integer, nullable=True)
    treatment_guidelines = db.Column(db.Text, nullable=True)
    created_at = db.Column(db.DateTime)
    updated_at = db.Column(db.DateTime)

    def __repr__(self):
        return f'<Diseases {self.name}>'
